MoreExam
1. Question Content...
EXPLANATION
Answer: X - EXPLANATION Content.
Question1: Which of the following tools can be used to distribute large-scale feature engineering without the use of a UDF or pandas Function API for machine learning pipelines?
Question2: A team is developing guidelines on when to use various evaluation metrics for classification problems. The team needs to provide input on when to use the F1 score over accuracy.Which of the following suggestions should the team include in their guidelines?
Question3: A data scientist is using the following code block to tune hyperparameters for a machine learning model:Which change can they make the above code block to improve the likelihood of a more accurate model?
Question4: A data scientist is working with a feature set with the following schema:The customer_id column is the primary key in the feature set. Each of the columns in the feature set has missing values. They want to replace the missing values by imputing a common value for each feature.Which of the following lists all of the columns in the feature set that need to be imputed using the most common value of the column?
Question5: A machine learning engineer is trying to perform batch model inference. They want to get predictions using the linear regression model saved at the path model_uri for the DataFrame batch_df.batch_df has the following schema:customer_id STRINGThe machine learning engineer runs the following code block to perform inference on batch_df using the linear regression model at model_uri:In which situation will the machine learning engineer's code block perform the desired inference?
Question6: A data scientist has defined a Pandas UDF function predict to parallelize the inference process for a single-node model:They have written the following incomplete code block to use predict to score each record of Spark DataFrame spark_df:Which of the following lines of code can be used to complete the code block to successfully complete the task?
Question7: The implementation of linear regression in Spark ML first attempts to solve the linear regression problem using matrix decomposition, but this method does not scale well to large datasets with a large number of variables.Which of the following approaches does Spark ML use to distribute the training of a linear regression model for large data?
Question8: Which of the following machine learning algorithms typically uses bagging?
Question9: A machine learning engineer is trying to scale a machine learning pipeline by distributing its single-node model tuning process. After broadcasting the entire training data onto each core, each core in the cluster can train one model at a time. Because the tuning process is still running slowly, the engineer wants to increase the level of parallelism from 4 cores to 8 cores to speed up the tuning process. Unfortunately, the total memory in the cluster cannot be increased.In which of the following scenarios will increasing the level of parallelism from 4 to 8 speed up the tuning process?
Question10: A data scientist uses 3-fold cross-validation and the following hyperparameter grid when optimizing model hyperparameters via grid search for a classification problem:* Hyperparameter 1: [2, 5, 10]* Hyperparameter 2: [50, 100]Which of the following represents the number of machine learning models that can be trained in parallel during this process?
Question11: A data scientist is using Spark ML to engineer features for an exploratory machine learning project.They decide they want to standardize their features using the following code block:Upon code review, a colleague expressed concern with the features being standardized prior to splitting the data into a training set and a test set.Which of the following changes can the data scientist make to address the concern?
Question12: Which of the following is a benefit of using vectorized pandas UDFs instead of standard PySpark UDFs?
Question13: A machine learning engineer has been notified that a new Staging version of a model registered to the MLflow Model Registry has passed all tests. As a result, the machine learning engineer wants to put this model into production by transitioning it to the Production stage in the Model Registry.From which of the following pages in Databricks Machine Learning can the machine learning engineer accomplish this task?
Question14: A data scientist learned during their training to always use 5-fold cross-validation in their model development workflow. A colleague suggests that there are cases where a train-validation split could be preferred over k-fold cross-validation when k > 2.Which of the following describes a potential benefit of using a train-validation split over k-fold cross-validation in this scenario?
Question15: A data scientist is developing a single-node machine learning model. They have a large number of model configurations to test as a part of their experiment. As a result, the model tuning process takes too long to complete. Which of the following approaches can be used to speed up the model tuning process?
Question16: The implementation of linear regression in Spark ML first attempts to solve the linear regression problem using matrix decomposition, but this method does not scale well to large datasets with a large number of variables.Which of the following approaches does Spark ML use to distribute the training of a linear regression model for large data?
Question17: Which of the following approaches can be used to view the notebook that was run to create an MLflow run?
Question18: A data scientist has written a data cleaning notebook that utilizes the pandas library, but their colleague has suggested that they refactor their notebook to scale with big data.Which of the following approaches can the data scientist take to spend the least amount of time refactoring their notebook to scale with big data?
Question19: A data scientist has produced two models for a single machine learning problem. One of the models performs well when one of the features has a value of less than 5, and the other model performs well when the value of that feature is greater than or equal to 5. The data scientist decides to combine the two models into a single machine learning solution.Which of the following terms is used to describe this combination of models?
Question20: A machine learning engineer would like to develop a linear regression model with Spark ML to predict the price of a hotel room. They are using the Spark DataFrame train_df to train the model.The Spark DataFrame train_df has the following schema:The machine learning engineer shares the following code block:Which of the following changes does the machine learning engineer need to make to complete the task?
Question21: A data scientist has replaced missing values in their feature set with each respective feature variable's median value. A colleague suggests that the data scientist is throwing away valuable information by doing this.Which of the following approaches can they take to include as much information as possible in the feature set?
Question22: A data scientist has been given an incomplete notebook from the data engineering team. The notebook uses a Spark DataFrame spark_df on which the data scientist needs to perform further feature engineering. Unfortunately, the data scientist has not yet learned the PySpark DataFrame API.Which of the following blocks of code can the data scientist run to be able to use the pandas API on Spark?
Question23: Which statement describes a Spark ML transformer?
Question24: A machine learning engineering team has a Job with three successive tasks. Each task runs a single notebook. The team has been alerted that the Job has failed in its latest run.Which of the following approaches can the team use to identify which task is the cause of the failure?
Question25: A data scientist has a Spark DataFrame spark_df. They want to create a new Spark DataFrame that contains only the rows from spark_df where the value in column discount is less than or equal 0.Which of the following code blocks will accomplish this task?
Question26: A machine learning engineer wants to parallelize the inference of group-specific models using the Pandas Function API. They have developed the apply_model function that will look up and load the correct model for each group, and they want to apply it to each group of DataFrame df.They have written the following incomplete code block:Which piece of code can be used to fill in the above blank to complete the task?
Question27: A data scientist wants to efficiently tune the hyperparameters of a scikit-learn model. They elect to use the Hyperopt library's fmin operation to facilitate this process. Unfortunately, the final model is not very accurate. The data scientist suspects that there is an issue with the objective_function being passed as an argument to fmin.They use the following code block to create the objective_function:Which of the following changes does the data scientist need to make to their objective_function in order to produce a more accurate model?
Question28: A data scientist wants to parallelize the training of trees in a gradient boosted tree to speed up the training process. A colleague suggests that parallelizing a boosted tree algorithm can be difficult.Which of the following describes why?
Question29: Which of the following machine learning algorithms typically uses bagging?
Question30: A health organization is developing a classification model to determine whether or not a patient currently has a specific type of infection. The organization's leaders want to maximize the number of positive cases identified by the model.Which of the following classification metrics should be used to evaluate the model?
Question31: A machine learning engineer is using the following code block to scale the inference of a single-node model on a Spark DataFrame with one million records:Assuming the default Spark configuration is in place, which of the following is a benefit of using an Iterator?
Question32: A machine learning engineer is trying to scale a machine learning pipeline by distributing its feature engineering process.Which of the following feature engineering tasks will be the least efficient to distribute?
Question33: A data scientist is performing hyperparameter tuning using an iterative optimization algorithm. Each evaluation of unique hyperparameter values is being trained on a single compute node. They are performing eight total evaluations across eight total compute nodes. While the accuracy of the model does vary over the eight evaluations, they notice there is no trend of improvement in the accuracy. The data scientist believes this is due to the parallelization of the tuning process.Which change could the data scientist make to improve their model accuracy over the course of their tuning process?
Question34: A data scientist has developed a machine learning pipeline with a static input data set using Spark ML, but the pipeline is taking too long to process. They increase the number of workers in the cluster to get the pipeline to run more efficiently. They notice that the number of rows in the training set after reconfiguring the cluster is different from the number of rows in the training set prior to reconfiguring the cluster.Which of the following approaches will guarantee a reproducible training and test set for each model?
Question35: In which of the following situations is it preferable to impute missing feature values with their median value over the mean value?